package com.party.core.model.crowdfund;

import com.party.core.model.BaseModel;

import java.util.Date;

/**
 * @Description: 众筹详情统计-数据分析
 * @Author: yangshoukun
 * @Date: 2018/6/12 15:05
 */
public class ProjectDetailCount extends BaseModel {
    private static final long serialVersionUID = 4152156762186707695L;
    // 众筹id
    private String projectId;
    // 主题id
    private String eventId;
    // 订单量
    private Integer orderNum;
    // 金额
    private Double money;

    // 报名时间
    private Date applyDate;

    public Date getApplyDate() {
        return applyDate;
    }

    public void setApplyDate(Date applyDate) {
        this.applyDate = applyDate;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public String getEventId() {
        return eventId;
    }

    public void setEventId(String eventId) {
        this.eventId = eventId;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    @Override
    public String toString() {
        return "ProjectDetailCount{" +
                "projectId='" + projectId + '\'' +
                ", eventId='" + eventId + '\'' +
                ", orderNum=" + orderNum +
                ", money=" + money +
                ", applyDate=" + applyDate +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof ProjectDetailCount)) return false;
        if (!super.equals(o)) return false;

        ProjectDetailCount that = (ProjectDetailCount) o;

        if (projectId != null ? !projectId.equals(that.projectId) : that.projectId != null) return false;
        if (eventId != null ? !eventId.equals(that.eventId) : that.eventId != null) return false;
        if (orderNum != null ? !orderNum.equals(that.orderNum) : that.orderNum != null) return false;
        if (money != null ? !money.equals(that.money) : that.money != null) return false;
        return applyDate != null ? applyDate.equals(that.applyDate) : that.applyDate == null;
    }

    @Override
    public int hashCode() {
        int result = super.hashCode();
        result = 31 * result + (projectId != null ? projectId.hashCode() : 0);
        result = 31 * result + (eventId != null ? eventId.hashCode() : 0);
        result = 31 * result + (orderNum != null ? orderNum.hashCode() : 0);
        result = 31 * result + (money != null ? money.hashCode() : 0);
        result = 31 * result + (applyDate != null ? applyDate.hashCode() : 0);
        return result;
    }

}
